package com.syni.mdd.yhd.common.all.service.platformGoods;

import com.syni.mdd.yhd.common.all.entity.platformGood.BmsPlatformGood;
import com.syni.mdd.sjb.common.component.utils.common.utils.ParamsMap;

import java.util.Map;
import java.util.Set;

/**
 * @className BmsPlatformGoodService
 * @description TOO
 * @Author cfx
 * @DATE 2020/3/12 14:49
 * @VERSION 1.0
 **/
public interface BmsPlatformGoodService {
    //省内口罩id
    int MASK_ID = 1;
    //省外口罩id
    int MASK_ID_OUT = 2;

    //省外
    int BUY_AREA_OUT = 2;
    Map<String, Object> getMasksGood(ParamsMap paramsMap);

    BmsPlatformGood findById(Integer goodId);

    Integer updateInventoryNum(Integer id,Integer num,Integer version);

    Integer updateLoseGoodInventory(Integer id,Integer num,Integer version);

    Map<Integer, BmsPlatformGood> findByIdIn(Set<Integer> platformIds);
}
